#include<stdio.h>
#include<math.h>

int main()
{
	int sign=1,n;
	double h,s=100;
	scanf("%d",&n);
	for(;sign<n;sign++){
		h=100*pow(0.5,sign);
		s+=h*2;
	}
	printf("S=%.3lf h=%.3lf",s,h*0.5);
	return 0;
}
